import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useAppStore = defineStore('app', () => {

  const pageTitle = ref('')

  function setPageTitle(title) {
    pageTitle.value = title
  }

  return { pageTitle, setPageTitle }
})

export const useAppStoreWithOut = () => {
  return useAppStore(store)
}
